import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home/index.vue'

Vue.use(Router)

export default new Router({
    scrollBehavior: () => ({ y: 0 }),
    mode: 'history', // 去掉url中的#
    routes: [
        {
            path: '/',
            name: 'home',
            component: Home,
            meta: {
                title: "首页"
            }
        }
    ]

})